export const algorithmList = [
  {
    value: 1,
    label: '人员聚集监测',
    url: '/static/algorithm1.png',
  },
  {
    value: 2,
    label: '踩踏预警监测',
    url: '/static/algorithm3.png',
  },
  {
    value: 3,
    label: '突然加速物体监测',
    url: '/static/algorithm4.png',
  },
  {
    value: 4,
    label: '打架斗殴监测',
    url: '/static/algorithm2.png',
  },
  {
    value: 5,
    label: '攀爬翻越监测',
    url: '/static/algorithm17.png',
  },
  {
    value: 6,
    label: '人员摔倒监测',
    url: '/static/algorithm16.png',
  },
  {
    value: 7,
    label: '定点排徊监测',
    url: '/static/algorithm22.png',
  },
  {
    value: 8,
    label: '屋顶人员监测',
    url: '/static/algorithm21.png',
  },
  {
    value: 9,
    label: '身份识别',
    url: '/static/algorithm6.png',
  },
  {
    value: 10,
    label: '违章停车监测',
    url: '/static/algorithm5.png',
  },
  {
    value: 11,
    label: '逆行监测',
    url: '/static/algorithm7.png',
  },
  {
    value: 12,
    label: '超速监测',
    url: '/static/algorithm7.png',
  },
  {
    value: 13,
    label: '可疑车辆追踪',
    url: '/static/algorithm9.png',
  },
  {
    value: 14,
    label: '可疑停留车辆',
    url: '/static/algorithm14.png',
  },
  {
    value: 15,
    label: '特殊车辆监测',
    url: '/static/algorithm15.png',
  },
  {
    value: 16,
    label: '烟花爆竹',
    url: '/static/algorithm11.png',
  },
  {
    value: 17,
    label: '非法焚烧',
    url: '/static/algorithm17.png',
  },
  {
    value: 18,
    label: '建筑物倒塌',
    url: '/static/algorithm10.png',
  },
  {
    value: 19,
    label: '非法倾倒垃圾',
    url: '/static/algorithm18.png',
  },
  {
    value: 20,
    label: '违章建筑',
    url: '/static/algorithm12.png',
  },
  {
    value: 21,
    label: '非法盗采',
    url: '/static/algorithm13.png',
  },
  {
    value: 22,
    label: '人流监测',
    url: '/static/algorithm19.png',
  },
  {
    value: 23,
    label: '车流监测',
    url: '/static/algorithm14.png',
  },
  {
    value: 24,
    label: '道路拥堵监测',
    url: '/static/algorithm15.png',
  },
  {
    value: 25,
    label: '交通事故监测',
    url: '/static/algorithm20.png',
  },
];
export const stopenrouteList = [
  {
    value: 1,
    label: '航点1',
  },
  {
    value: 2,
    label: '航点2',
  },
  {
    value: 3,
    label: '航点3',
  },
];
export const yawList = [
  {
    value: 0,
    label: '沿航线方向',
  },
  // {
  //   value: 1,
  //   label: '手动控制',
  // },
  {
    value: 2,
    label: '锁定当前偏航角',
  },
];
export const typeList = [
  {
    value: 0,
    label: '协调转弯，不过点，提前转弯',
  },
  {
    value: 1,
    label: '直线飞行，飞行器到点停',
  },
  // {
  //   value: 2,
  //   label: '平滑过点，提前转弯',
  // },
  {
    value: 3,
    label: '曲线飞行，飞行器到点停',
  },
  {
    value: 4,
    label: '曲线飞行，飞行器过点不停',
  },
];
export const getalgorithmList = (value: number) => {
  return algorithmList.find((item) => item.value == value);
};

// 无人机失控
export const destinationtypeList = [
  {
    value: 0,
    label: '自动返航',
  },
  // {
  //   value: 1,
  //   label: '返回航线到起始点悬停',
  // },
  // {
  //   value: 2,
  //   label: '退出航线模式',
  // },
  // {
  //   value: 3,
  //   label: '原地降落',
  // },
];
export const getdestinationtypeList = (value: number) => {
  return destinationtypeList.find((item) => item.value == value);
};

export const wayList = [
  {
    actionType: 1,
    name: '悬停',
    url: '/static/action1.png',
    actionValue: 0,
  },
  {
    actionType: 2,
    name: '无人机偏航角',
    url: '/static/action2.png',
    actionValue: 0,
  },
  {
    actionType: 3,
    name: '云台俯仰角',
    url: '/static/action3.png',
    actionValue: 0,
  },
  {
    actionType: 4,
    name: '拍照',
    url: '/static/action4.png',
  },
  {
    actionType: 5,
    name: '全景拍照',
    url: '/static/action5.png',
  },
  {
    actionType: 6,
    name: '开始录像',
    url: '/static/action6.png',
  },
  {
    actionType: 7,
    name: '相机变焦',
    url: '/static/action13.png',
    actionValue: 0,
  },
  {
    actionType: 8,
    name: '停止录像',
    url: '/static/action7.png',
  },
  {
    actionType: 9,
    name: '开始等距间隔拍照',
    url: '/static/action11.png',
    actionValue: 0,
  },
  {
    actionType: 10,
    name: '开始等时间隔拍照',
    url: '/static/action9.png',
    actionValue: 0,
  },
  {
    actionType: 11,
    name: '结束间隔拍照',
    url: '/static/action10.png',
  },
];
export const getwayList = (value: number) => {
  return wayList.find((item) => item.actionType == value);
};

export const layerConfigs = {
  1: { name: '标准地图' },
  2: { name: '卫星地图-天地图' },
  3: { name: '卫星地图-百度' },
};

// 拍照模式
export const photomodeList = [
  {
    value: 0,
    label: '等时间隔拍照',
  },
  {
    value: 1,
    label: '等距间隔拍照',
  },
];
